home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 1: Comms & Networking
/
Almathera Ten on Ten - Disc 1: Comms & Networking.iso
/
amiga-useful
/
perl
/
src
/
makefile
< prev
next >
Wrap
Makefile
|
1995-05-04
|
6KB
|
196 lines
#
# Amiga GCC 2.1 Configured Makefile
#
#
# DEST --- destination directory
# EXTHDRS --- headers external to the cwd
# HDRS --- headers which reside in the cwd
# INCLUDES --- Include directory (ies) for files.
# CDEFS --- Various C definitions.
# CFLAGS --- cflags for compilation
# LIBS --- (local) libraries for additional routines
# EXTLIBS --- (external) libraries for additional routines
# LINKER --- linker (typically c)
# LINTFLAGS --- lint flags (if any)
# MAKEFILE --- the name of this makefile (used by mkmf)
# OBJS --- objects made from programs in the cwd
# EXTOBJS --- objects made from programs not in the cwd
# PRINT --- print facility to print out sources, etc.
# PROGRAM --- the final program name
# SRCS --- the sources which reside in the cwd
# CSHS --- csh scripts
# MANS --- manual pages
# JUNKS --- junk programs which may be removed
# OWNER --- the owner's name for installation purposes
DEST = Max2:bin
EXTHDRS =
HDRS =
INCLUDES =
CDEFS = -DAMIGA -DAMIVERSION="0.1.0"
DEBUG =
CFLAGS = $(INCLUDES) $(CDEFS) $(DEBUG)
YFLAGS = -d
LIBS =
EXTLIBS =
CC = gcc
LINKER = gcc
LINKFLAGS = -lm
LINTFLAGS = $(INCLUDES) $(CDEFS)
MAKEFILE = Makefile
OBJS = array.o \
cmd.o \
cons.o \
consarg.o \
doarg.o \
doio.o \
dolist.o \
dump.o \
eval.o \
form.o \
hash.o \
perl.o \
perly.o \
regcomp.o \
regexec.o \
stab.o \
str.o \
toke.o \
usersub.o \
util.o
EXTOBJS =
PRINT = printfiles
PROGRAM = perl
SRCS = array.c \
cmd.c \
cons.c \
consarg.c \
doarg.c \
doio.c \
dolist.c \
dump.c \
eval.c \
form.c \
hash.c \
perl.c \
perly.c \
regcomp.c \
regexec.c \
stab.c \
str.c \
toke.c \
usersub.c \
util.c
CSHS =
MANS =
DOCS =
JUNKS = $(PROGRAM)
DISTRIB = $(PROGRAM)
# Standard Targets
# -------- -------
#
# all: --- equivalent to ``make program''
# <program> --- make the entire program; <program> == name
# clean: --- remove all re-makeable files and junks
# depend: --- update the dependency list.
# diff: --- find diffs between latest and present versions
# index: --- list all procedures/#defines (result on stdout)
# install: --- install the final result in the destination dir
# lint: --- lint the files (result on stdout)
# print: --- print the sources (result on stdout)
# program: --- equivalent to make <program>
# tags: --- create a tags file for use with gnu
# update: --- makes and installs program (if out of date)
# <dest/program> --- equivalent to make update
# archive: --- makes an Lha archive of all files in DISTRIB
# version: --- updates version number and date.
#
# make install installs the result in the destination directory;
# make update checks that the result in the destination directory is
# up to date.
#
all: $(PROGRAM)
$(PROGRAM): $(OBJS) $(LIBS) $(EXTOBJS)
@echo "Loading $(PROGRAM) ... "
@$(LINKER) $(CFLAGS) $(OBJS) $(EXTOBJS) $(LIBS) $(EXTLIBS) -o $(PROGRAM) $(LINKFLAGS)
@echo "done"
clean:; @delete $(OBJS) $(JUNKS) FORCE
diff:; @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
index:; @ctags -wx $(HDRS) $(SRCS)
install: $(PROGRAM)
@echo Installing $(PROGRAM) in $(DEST)
@copy $(PROGRAM) $(DEST)
lint:; $(CC) $(CFLAGS) -c -Wall -pedantic $(SRCS)
print:; @$(PRINT) $(HDRS) $(SRCS)
program: $(PROGRAM)
tags: $(HDRS) $(SRCS); @etags -t $(HDRS) $(SRCS)
update: $(DEST)/$(PROGRAM)
archive: $(DISTRIB)
@lha -x a $(PROGRAM).lha $(DISTRIB)
$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
@make -f $(MAKEFILE) DEST=$(DEST) install clean
depend:
$(CC) -MM $(SRCS) >>Makefile
## Auto generated dependencies will appear below.
array.o : array.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
stab.h spat.h arg.h cmd.h array.h hash.h
cmd.o : cmd.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
stab.h spat.h arg.h cmd.h array.h hash.h
cons.o : cons.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
stab.h spat.h arg.h cmd.h array.h hash.h perly.h
consarg.o : consarg.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h \
form.h stab.h spat.h arg.h cmd.h array.h hash.h
doarg.o : doarg.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
stab.h spat.h arg.h cmd.h array.h hash.h
doio.o : doio.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
stab.h spat.h arg.h cmd.h array.h hash.h
dolist.o : dolist.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
stab.h spat.h arg.h cmd.h array.h hash.h
dump.o : dump.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
stab.h spat.h arg.h cmd.h array.h hash.h
eval.o : eval.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
stab.h spat.h arg.h cmd.h array.h hash.h
form.o : form.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
stab.h spat.h arg.h cmd.h array.h hash.h
hash.o : hash.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
stab.h spat.h arg.h cmd.h array.h hash.h
perl.o : perl.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
stab.h spat.h arg.h cmd.h array.h hash.h perly.h patchlevel.h
perly.o : perly.c INTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
stab.h spat.h arg.h cmd.h array.h hash.h
regcomp.o : regcomp.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h \
form.h stab.h spat.h arg.h cmd.h array.h hash.h INTERN.h regcomp.h
regexec.o : regexec.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h \
form.h stab.h spat.h arg.h cmd.h array.h hash.h regcomp.h
stab.o : stab.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
stab.h spat.h arg.h cmd.h array.h hash.h
str.o : str.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
stab.h spat.h arg.h cmd.h array.h hash.h perly.h
toke.o : toke.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
stab.h spat.h arg.h cmd.h array.h hash.h perly.h
usersub.o : usersub.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h \
form.h stab.h spat.h arg.h cmd.h array.h hash.h
util.o : util.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
stab.h spat.h arg.h cmd.h array.h hash.h
## end autogenerated depends